package com.etone.smartAudit.dto.email;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @author: 蒋学伟
 * @create: 2020-07-06 10:16:45
 * @Description EmailDTO
 */
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Data
@ApiModel(value = "EmailDTO", description = "邮件信息")
public class EmailDTO {

    @ApiModelProperty("收件人")
    @NotEmpty
    private List<String> to;

    @ApiModelProperty("抄送人")
    private List<String> cc;

    @ApiModelProperty("主题")
    @NotEmpty
    private String subject;

    @ApiModelProperty("内容")
    private String content;
}
